﻿Public Class PropertyForm

    Private Sub PropertyForm_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
        'Test to see if either the dbiWSFSChedule or dbiWSFDayView controls were passed, if so, update their displays
        'for any changes made to their properties.
        Select Case Me.PropertyGrid1.SelectedObject.GetType.ToString
            Case GetType(dbiWSF.ControlLibrary.dbiWSFSchedule).ToString
                Me.PropertyGrid1.SelectedObject.DataRefresh()
            Case GetType(dbiWSF.ControlLibrary.dbiWSFDayView).ToString
                Me.PropertyGrid1.SelectedObject.DataRefresh()
        End Select

    End Sub
End Class